-- CALC_SKY_FIGHTER_FIRE
-- 战队的火力

return function(fighter)
    local fire = fighter.dbase:query("fire", 0);

    -- 火力+N
    local prop = PropM.combine(fighter, "attrib2", "fire");
    fire = PropM.apply(prop, fire);

    fire = fire + SkyShipSkillM.calcAddon(fighter, "fire", fire);

    fire = fire + SkyPropM.calcAddon(fighter, "fire", fire);

    -- 火力+N（不参与前面的整体提升）
    prop = PropM.combine(fighter, "add_attrib", "fire");
    fire = PropM.apply(prop, fire);

    -- 降低火力N
    prop = PropM.combine(fighter, "ship_reduce_attrib", "fire");
    fire = PropM.apply(prop, fire);

    if fire < 0 then
        fire = 0;
    end

    return fire;
end
